using System;
using UnityEngine;

[Serializable]
public class rotation_map_class
{
	public bool active;

	public image_class preimage;

	public rotation_map_class()
	{
		preimage = new image_class();
	}

	public float calc_rotation(Color color)
	{
		return (!(color == new Color(1f, 1f, 1f))) ? ((0f - color.r) * 255f + (0f - color.g) * 255f + (0f - color.b)) : 0f;
	}
}
